<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="PaginaInicio.html.xhtml">
	<ui:define name="content">
		<f:loadBundle basename="resources.Post" var="varsita" />
		<h:form>

			<center>
				<h1>
					<h:outputText style="BACKGROUND-COLOR: #c0c0c0;"
						value="#{varsita.realizarpost}" />
					<br />
				</h1>


				<br /> <br /> <br />

				<h:panelGroup>
					<h:outputLabel value="#{varsita.Asterisco}#{varsita.titulo}" style="BACKGROUND-COLOR: #c0c0c0" />
					<br />
					<br />
					<h:inputText value="#{postBean.titulo}"
						style="width: 362px; height: 56px; " />
					<br />
					<br />

					<h:outputLabel value="#{varsita.Asterisco}#{varsita.contenido}" style="BACKGROUND-COLOR: #c0c0c0" />
					<br />
					<br />
					<h:inputTextarea value="#{postBean.contenido}"
						style="width: 365px; height: 100px; " />
					<br />
					<br />

					<h:outputLabel value="#{varsita.Asterisco}#{varsita.fuente}" style="BACKGROUND-COLOR: #c0c0c0" />
					<br />
					<br />
					<h:inputText value="#{postBean.fuente}"
						style="width: 362px; height: 49px; " />
					<br />
					<br />

					<h:outputLabel value="#{varsita.tags}" style="BACKGROUND-COLOR: #c0c0c0" />
					<br />
					<br />
					<h:inputTextarea value="#{postBean.tag}"
						style="width: 370px; height: 112px; " />
					<br />
					<br />

					<h:outputLabel id="categoria" value="#{varsita.Asterisco}#{varsita.categoriapost}"
						style="BACKGROUND-COLOR: #c0c0c0" />
					<br />
					<br />
					<h:selectOneMenu value="#{postBean.numeroCategoria}">
						<f:selectItems value="#{postBean.listarCategorias}" />
					</h:selectOneMenu>
				</h:panelGroup>
				<br />

				<h:outputText value="#{postBean.mensajeRegistrar}" style="color:red" />

				<br /> <br />
				<h:commandButton value="#{varsita.guardar}" action="#{postBean.registrarPost}" />



			</center>
		</h:form>
	</ui:define>


	<ui:define name="footer">
		<h:form>
			<center>
			<h5>
				<h:commandLink value="#{varsita.atras}"
					action="PaginaPost.html.xhtml"></h:commandLink>
			</h5>
			</center>
		</h:form>
	</ui:define>


</ui:composition>
</html>